#! /bin/sh

NAME=smpprouter
case "$1" in
  start)
        echo "Starting $NAME ..."
        $NAME
        ;;
  stop)
        echo "Stopping $NAME ..."
        killall $NAME
        ;;
  restart)
        echo "Restarting $NAME ..."
        killall $NAME
        sleep 1
        $NAME
        ;;
  *)
        N=/usr/local/etc/rc.d/${NAME}.sh
        echo "usage: $N {start|stop|restart}" >&2
        exit 1
        ;;
esac

exit 0